# f = open('f:/tmp/test.txt', 'r')
# print(f)
# print(type(f))
#
# f.close()


# f = open('f:/tmp/test.txt', 'w')
# f.write('hello')
# f.close()

# f = open('f:/tmp/test.txt', 'r')
# result = f.read(2)
# print(result)
# f.close()

# f = open('f:/tmp/test.txt', 'r', encoding='UTF-8')
# for line in f:
#     print(f'line = {line}', end='')
# f.close()

# f = open('f:/tmp/test.txt', 'r', encoding='UTF-8')
# lines = f.readlines()
# print(lines)
# f.close()

def func():
    with open('f:/tmp/test.txt', 'r', encoding='utf-8') as f:
        lines = f.readlines()
        print(lines)








